import org.grails.rateable.*
import org.grails.comments.*

public class Opinion implements Rateable, Commentable {
    static belongsTo = [Topic, User]

    User author
    Topic topic
    String opinion
    Date dateCreated
	
    static constraints = {
        opinion(size:1..400)
    }
	
    static mapping = {
        sort dateCreated:"desc"
    }
}
